package com.hwadee.teachingprocessmanagementsystem.service.base;

import java.util.List;

/**
 * @Description: 数据库表服务接口
 * @Author: Jukomu
 * @Package: com.hwadee.teachingprocessmanagementsystem.service.base
 * @Project: TeachingProcessManagementSystem
 * @name: TableService
 * @Date: 2024/7/17-23:34
 * @Filename: TableService
 */
public interface TableService<T> {
    List<String> getAllTables();

    <T> List<T> getTableDetail(String tableName, Class<T> type) throws Exception;

    int updateTable(String tableName, T entity);

    int deleteTable(String tableName, T entity);

    int createTable(String tableName, T entity);
}
